package com.china.zhuoyue.ui.activity.estate.home.service

import android.view.View
import com.china.zhuoyue.databinding.ActivityGoodsPassBinding
import com.china.zhuoyue.ui.base.BaseActivity
import com.china.zhuoyue.ui.ext.toastMessageLong
import com.china.zhuoyue.ui.widget.CommonButton

class GoodsPassActivity : BaseActivity<ActivityGoodsPassBinding>() {
    override fun initView() {
        bindViewClick(vb.buttonSubmit, vb.buttonTypeIn, vb.buttonTypeOut)
    }

    override fun onClick(v: View?) {
        when (v) {
            vb.buttonSubmit -> {
                "提交成功".toastMessageLong()
                finish()
            }
            vb.buttonTypeIn -> {
                vb.buttonTypeIn.changeStyle(CommonButton.CB_NORMAL)
                vb.buttonTypeOut.changeStyle(CommonButton.CB_STROKE_HINT)
            }
            vb.buttonTypeOut -> {
                vb.buttonTypeIn.changeStyle(CommonButton.CB_STROKE_HINT)
                vb.buttonTypeOut.changeStyle(CommonButton.CB_NORMAL)
            }
        }
    }
}